
public class Table extends AbstractComponent
{

	public Table(IComponent leftChild, IComponent rightChild) 
	{
		super(leftChild, rightChild);
	}
	@Override
	public String toDokuWiki()
	{
		StringBuilder stringBuilder = new StringBuilder() ;
		if(leftChild instanceof TableHeader)
			stringBuilder.append("^") ;
		else 
			stringBuilder.append("|") ;
		if(leftChild instanceof TableHeader)
			stringBuilder.append(super.toDokuWiki("^\n")) ;
		else
			stringBuilder.append(super.toDokuWiki("|\n")) ;
		if(rightChild == null)
			if(leftChild instanceof TableHeader)
				stringBuilder.append("^") ;
			else 
				stringBuilder.append("|") ;
		return stringBuilder.toString() ;
	}
	@Override
	public String toMediaWiki()
	{
		return null ;
	}
}
